Automattic\WooCommerce\Internal\DataStores\Orders\OrdersTableDataStore D

Total Complexity 322
Dependencies 20
Dependents 23
Total lines 3,090
Lines of code 1,468
Logical lines of code 707
Comment lines 1,035
Methods 100
Properties 15

Methods 100

Method Rating Maintainability Complexity Lines of code
get_diff_meta_data_between_orders()
B
44 17 44
update()
A
45 15 35
get_order_data_for_ids()
A
40 10 62
query()
A
46 10 41
backfill_post_record()
A
45 10 41
delete_meta()
A
47 10 34
delete()
A
46 9 43
init_default_taxonomies()
A
52 10 24
get_db_rows_for_order()
A
41 7 64
get_post_orders_for_ids()
A
44 8 46
read_multiple()
A
50 9 26
untrash_order()
A
44 6 54
get_db_row_from_order()
A
53 8 22
set_order_props_from_data()
A
47 7 36
persist_order_to_db()
S
49 7 28
get_database_schema()
S
40 2 91
release_held_coupons()
S
54 6 23
set_custom_taxonomies()
S
56 6 18
persist_save()
S
54 5 21
trash_order()
S
49 4 34
upshift_or_delete_child_orders()
S
52 4 27
maybe_sync_order()
S
60 5 12
update_order_from_object()
S
53 4 22
maybe_create_backup_post()
S
56 4 17
set_coupon_held_keys()
S
66 5 8
update_address_index_meta()
S
64 5 8
add_meta()
S
61 4 11
get_orders_type()
S
55 3 19
persist_updates()
S
57 3 17
update_meta()
S
62 4 10
should_save_after_meta_change()
S
64 4 8
get_payment_token_ids()
S
63 4 10
delete_order_data_from_custom_order_tables()
S
60 3 14
after_meta_change()
S
61 3 12
handle_order_deletion_with_sync_disabled()
S
54 2 24
get_total_refunded()
S
57 2 18
get_order_data_for_id()
S
74 3 4
set_order_prop()
S
64 3 9
create()
S
64 3 10
generate_select_clause_for_props()
S
66 3 7
is_post_different_from_order()
S
64 3 10
get_coupon_held_keys()
S
68 3 7
get_coupon_held_keys_for_users()
S
68 3 7
join_address_table_order_query()
S
59 2 14
update_payment_token_ids()
S
60 2 13
get_all_order_column_mappings()
S
63 2 11
get_order_table_select_statement()
S
56 1 17
get_total_tax_refunded()
S
59 1 16
get_total_shipping_refunded()
S
59 1 16
get_email_sent()
S
72 2 5
get_address_table_alias()
S
79 2 3
set_recorded_coupon_usage_counts()
S
69 2 7
get_recorded_coupon_usage_counts()
S
72 2 5
set_recorded_sales()
S
69 2 7
get_cpt_data_store_instance()
S
71 2 6
set_new_order_email_sent()
S
69 2 7
get_recorded_sales()
S
72 2 5
set_download_permissions_granted()
S
69 2 7
get_download_permissions_granted()
S
72 2 5
set_email_sent()
S
69 2 7
set_stock_reduced()
S
69 2 7
get_stock_reduced()
S
72 2 5
get_unpaid_orders_gmt()
S
58 1 15
migrate_post_record()
S
64 2 9
maybe_backfill_post_record()
S
75 2 5
should_sync_order()
S
71 2 5
filter_raw_meta_data()
S
60 1 14
get_order_id_by_order_key()
S
60 1 13
get_meta_table_name()
S
76 1 4
read_meta()
S
75 1 4
get_all_table_names()
S
69 1 8
get_all_table_names_with_id()
S
64 1 10
should_backfill_post_record()
S
76 1 4
get_order_table_alias()
S
82 1 3
get_op_table_alias()
S
82 1 3
update_order_meta()
S
76 1 4
get_operational_data_table_name()
S
76 1 4
update_post_meta()
S
81 1 3
get_addresses_table_name()
S
76 1 4
generate_select_and_join_clauses()
S
66 1 8
get_post_data_store_for_backfill()
S
80 1 3
init_order_record()
S
67 1 8
get_order_count()
S
71 1 5
get_orders()
S
75 1 4
get_unpaid_orders()
S
72 1 5
search_orders()
S
65 1 9
get_order_type()
S
75 1 4
order_exists()
S
65 1 10
read()
S
76 1 4
set_order_stock_reduced()
S
80 1 3
get_new_order_email_sent()
S
80 1 3
get_cpt_order()
S
69 1 7
get_orders_table_name()
S
76 1 4
migrate_meta_data_from_post_order()
S
72 1 5
get_order_stock_reduced()
S
80 1 3
get_order_meta_select_statement()
S
68 1 7
join_billing_address_table_to_order_query()
S
79 1 3
join_shipping_address_table_to_order_query()
S
79 1 3
join_operational_data_table_to_order_query()
S
67 1 9
init()
S
66 1 8